package com.manage.project.biz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.CivilEnginneeringAllMaintenanceMapper;
import com.manage.project.biz.domain.CivilEnginneeringAllMaintenance;
import com.manage.project.biz.service.ICivilEnginneeringAllMaintenanceService;

/**
 * 养护方案计划Service业务层处理
 * 
 * @author ycd
 * @date 2022-05-30
 */
@Service
public class CivilEnginneeringAllMaintenanceServiceImpl implements ICivilEnginneeringAllMaintenanceService 
{
    @Autowired
    private CivilEnginneeringAllMaintenanceMapper civilEnginneeringAllMaintenanceMapper;

    /**
     * 查询养护方案计划
     * 
     * @param allMaintenanceId 养护方案计划主键
     * @return 养护方案计划
     */
    @Override
    public CivilEnginneeringAllMaintenance selectCivilEnginneeringAllMaintenanceByAllMaintenanceId(Long allMaintenanceId)
    {
        return civilEnginneeringAllMaintenanceMapper.selectCivilEnginneeringAllMaintenanceByAllMaintenanceId(allMaintenanceId);
    }

    /**
     * 查询养护方案计划列表
     * 
     * @param civilEnginneeringAllMaintenance 养护方案计划
     * @return 养护方案计划
     */
    @Override
    public List<CivilEnginneeringAllMaintenance> selectCivilEnginneeringAllMaintenanceList(CivilEnginneeringAllMaintenance civilEnginneeringAllMaintenance)
    {
        return civilEnginneeringAllMaintenanceMapper.selectCivilEnginneeringAllMaintenanceList(civilEnginneeringAllMaintenance);
    }

    /**
     * 新增养护方案计划
     * 
     * @param civilEnginneeringAllMaintenance 养护方案计划
     * @return 结果
     */
    @Override
    public int insertCivilEnginneeringAllMaintenance(CivilEnginneeringAllMaintenance civilEnginneeringAllMaintenance)
    {
        return civilEnginneeringAllMaintenanceMapper.insertCivilEnginneeringAllMaintenance(civilEnginneeringAllMaintenance);
    }

    /**
     * 修改养护方案计划
     * 
     * @param civilEnginneeringAllMaintenance 养护方案计划
     * @return 结果
     */
    @Override
    public int updateCivilEnginneeringAllMaintenance(CivilEnginneeringAllMaintenance civilEnginneeringAllMaintenance)
    {
        return civilEnginneeringAllMaintenanceMapper.updateCivilEnginneeringAllMaintenance(civilEnginneeringAllMaintenance);
    }

    /**
     * 批量删除养护方案计划
     * 
     * @param allMaintenanceIds 需要删除的养护方案计划主键
     * @return 结果
     */
    @Override
    public int deleteCivilEnginneeringAllMaintenanceByAllMaintenanceIds(Long[] allMaintenanceIds)
    {
        return civilEnginneeringAllMaintenanceMapper.deleteCivilEnginneeringAllMaintenanceByAllMaintenanceIds(allMaintenanceIds);
    }

    /**
     * 删除养护方案计划信息
     * 
     * @param allMaintenanceId 养护方案计划主键
     * @return 结果
     */
    @Override
    public int deleteCivilEnginneeringAllMaintenanceByAllMaintenanceId(Long allMaintenanceId)
    {
        return civilEnginneeringAllMaintenanceMapper.deleteCivilEnginneeringAllMaintenanceByAllMaintenanceId(allMaintenanceId);
    }
}
